<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>图书浏览器</title>
  <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/>
</head>

<body>
  <h2 id="book_browser">图书浏览器</h2>

  <p class="h2subheading">— 在 EPUB 中管理文件 —</p>

  <p>All of the files that make up your EPUB can be accessed using the Book Browser. Your text files, images, as well as any fonts or stylesheets or other files, are organised into folders – allowing easy access to open and edit them with a double-click, or to right-click on them to perform actions.</p>
  <p>可以使用图书浏览器访问组成 EPUB 的所有文件。您的文本文件，图像以及所有字体或样式表或其他文件都被组织到文件夹中 - 轻松访问即可通过双击打开和编辑它们，或右键单击它们以执行操作。</p>

  <p>The Book Browser is usually open, but you can open it by selecting the menu item <span class="menuitem">View→Book Browser</span>:</p>
  <p>图书浏览器通常是打开的，但是您可以通过选择菜单项 <span class="menuitem">查看→图书浏览器</span> 来打开它：</p>

  <div class="image">
    <img alt="book-browser-main" src="../Images/book-browser-main.png"/>
  </div>

  <div class="tip">
    <p class="tiptext">Double-clicking a file will open it in a tab in the editing window.</p>
    <p class="tiptext">双击文件将在编辑窗口的选项卡中将其打开。</p>

    <p class="tiptext">Right-clicking on a file name displays a context menu of options.</p>
    <p class="tiptext">右键单击文件名将显示选项的上下文菜单。</p>
  </div>

  <h3 class="sigil_not_in_toc" id="folders_and_files">Folders &amp; Files</h3>
  <h3 class="sigil_not_in_toc" id="folders_and_files">文件夹 &amp; 文件</h3>

  <p>The Book Browser organises your files into several folders which can be expanded or collapsed by clicking on the little arrow or plus icon to the left of the folder’s name or double-clicking on the folder name. The folders and files include:</p>
  <p>图书浏览器将您的文件组织到几个文件夹中，可通过单击文件夹名称左侧的小箭头或加号图标或双击文件夹名称来展开或折叠。文件夹和文件包括：</p>

  <ul>
    <li><span class="listheading">Text:</span> The XHTML, HTML, XML, HTM files that make up the text of the book.</li>
    <li><span class="listheading">文本：</span>构成本书文本的 XHTML、HTML、XML、HTM 文件。</li>

    <li><span class="listheading">Styles:</span> The CSS stylesheets that control the formatting of the book.</li>
    <li><span class="listheading">样式：</span>用于控制书籍格式的 CSS 样式表。</li>

    <li><span class="listheading">Images:</span> The PNG, JPG, GIF, SVG image files in the book.</li>
    <li><span class="listheading">图片：</span>书中的 PNG、JPG、GIF、SVG 图片文件。</li>

    <li><span class="listheading">Fonts:</span> The TTF and OTF embedded fonts that might be in the book.</li>
    <li><span class="listheading">字体：</span>书中可能包含的 TTF 和 OTF 嵌入式字体。</li>

    <li><span class="listheading">Audio:</span> The MP3, AAC, MPG, MPEG, M4A embedded audio files that might be in the book.</li>
    <li><span class="listheading">音频：</span>书中可能包含的 MP3、AAC、MPG、MPEG、M4A 嵌入式音频文件。</li>

    <li><span class="listheading">Video:</span> The MP4, OGG, WEBM, M4V embedded video files that might be in the book.</li>
    <li><span class="listheading">视频：</span>书中可能包含的 MP4、OGG、WEBM、M4V 嵌入式视频文件。</li>

    <li><span class="listheading">Misc:</span> Other files, which are not typically used by EPUB readers even though they can be stored with the book.</li>
    <li><span class="listheading">其他：</span>EPUB 阅读器通常不使用的其他文件，即使它们可以与书一起存储。</li>

    <li><span class="listheading">toc.ncx:</span> The file containing the table of contents of the book.</li>
    <li><span class="listheading">toc.ncx：</span>包含书籍目录的文件。</li>

    <li><span class="listheading">content.opf:</span> The file containing the list of files in the book.</li>
    <li><span class="listheading">content.of：</span>包含书中文件列表的文件。</li>
  </ul>

  <p>To open a file just double-click the file name. If the file was not already open in a tab, a new tab will be created for it. If it was already open in a tab the view will switch to the tab containing the file.</p>
  <p>要打开文件，只需双击文件名。如果尚未在选项卡中打开文件，则将为其创建一个新的选项卡。如果它已经在选项卡中打开，则视图将切换到包含文件的选项卡。</p>

  <div class="tip">
    <p class="tiptext">If you change tabs, the Book Browser will select the file used by the tab.</p>
    <p class="tiptext">如果更改选项卡，则“书籍浏览器”将选择该选项卡使用的文件。</p>

    <p class="tiptext">The tooltip for each folder name shows the number of files in the folder. The tooltip for each file shows the full file name and any guide semantic types it has.</p>
    <p class="tiptext">每个文件夹名称的工具提示都会显示该文件夹中的文件数。每个文件的工具提示都会显示完整的文件名以及它具有的所有指南语义类型。</p>
  </div>

  <h3 class="sigil_not_in_toc" id="selecting_multiple_files">Selecting Multiple Files</h3>
  <h3 class="sigil_not_in_toc" id="selecting_multiple_files">选择多个文件</h3>

  <p>You can select multiple files in the Book Browser by clicking on one entry, and then holding the <span class="shortcut">Shift</span> key while clicking another entry to select all entries between and including the two entries. Hold down the <span class="shortcut">Ctrl</span> key while clicking to add individual files to your selection. You can also use the right-click context menu entry <span class="menuitem">Select All</span> to select all entries easily. Once you have selected your files you can then use the right-click context menu to perform actions on all the selected files.</p>
  <p>通过单击一个条目，然后按住 <span class="shortcut">Shift</span> 键，同时单击另一个条目以选择两个条目之间（包括这两个条目）的所有条目，可以在“图书浏览器”中选择多个文件。按住 <span class="shortcut">Ctrl</span> 键，同时单击以将单个文件添加到您的选择中。您还可以使用右键单击上下文菜单条目 <span class="menuitem">全选</span> 轻松选择所有条目。选择文件后，您可以使用右键单击上下文菜单对所有选定文件执行操作。</p>

  <p>You can only select multiple items within the same folder.</p>
  <p>您只能在同一文件夹中选择多个项目。</p>

  <h3 class="sigil_not_in_toc" id="re-ordering_files">Re-Ordering Files</h3>
  <h3 class="sigil_not_in_toc" id="re-ordering_files">重新排序文件</h3>

  <p>The order of the files in the Text folder is important since it is the order in which the files will be displayed to readers.</p>
  <p>“文本”文件夹中文件的顺序很重要，因为这是文件向读者显示的顺序。</p>

  <p>You can drag a file in the Text folder and move it up or down if you need to re-arrange the order in which the chapters or files appear in your book.</p>
  <p>如果需要重新排列章节或文件在书中的显示顺序，则可以将文件拖到“文本”文件夹中，然后上下移动。</p>

  <div class="tip">
    <p class="tiptext">You can also use the context menu to rename or re-sort the files.</p>
    <p class="tiptext">您也可以使用上下文菜单对文件进行重命名或重新排序。</p>
  </div>

  <p>All other folders are automatically sorted alphabetically and cannot be re-arranged – the order of their files does not affect how your book is displayed.</p>
  <p>所有其他文件夹将自动按字母顺序排序，并且无法重新排列 - 它们的文件顺序不会影响您的书籍的显示方式。</p>

  <h3 class="sigil_not_in_toc" id="context_menu">Context Menu</h3>
  <h3 class="sigil_not_in_toc" id="context_menu">上下文菜单</h3>

  <p>Right-clicking on one or more items in the Book Browser brings up a context menu with relevant actions:</p>
  <p>在“图书浏览器”中右键单击一个或多个项目会弹出一个上下文菜单，其中包含相关操作：</p>

  <div class="image">
    <img alt="book-browser-context-menu" src="../Images/book-browser-context-menu.png"/>
  </div>

  <p>The following sections describe the available context menu actions.</p>
  <p>以下各节描述了可用的上下文菜单操作。</p>

  <h3 class="sigil_not_in_toc" id="context_add_existing"></h3>

  <h3 class="sigil_not_in_toc">Delete</h3>
  <h3 class="sigil_not_in_toc">删除</h3>

  <p>Delete the selected files. You cannot delete the last remaining HTML file.</p>
  <p>删除所选文件。 您不能删除最后剩余的 HTML 文件。</p>

  <p>You will be prompted to confirm you want to delete the files since the action cannot be undone.</p>
  <p>由于无法撤消操作，系统将提示您确认要删除文件。</p>

  <div class="image">
    <img alt="book-browser-delete-files" src="../Images/book-browser-delete-files.png"/>
  </div>

  <p>Remember to update or regenerate the Table of Contents if your file was included in the TOC.</p>
  <p>如果您的文件包含在目录中，请记住要更新或重新生成目录。</p>

  <h3 class="sigil_not_in_toc" id="book_browser_rename">Rename</h3>
  <h3 class="sigil_not_in_toc" id="book_browser_rename">改名</h3>

  <p>If you select a single file to rename, then the name of the file is highlighted so that you can type in its new name. By default the extension is not highlighted to make renaming easier, but you can also change the extension if necessary.</p>
  <p>如果选择单个文件进行重命名，则文件名将突出显示，以便您键入其新名称。默认情况下，扩展名不会突出显示以使重命名更加容易，但是您也可以根据需要更改扩展名。</p>

  <p>If you select multiple files, then a new dialog is displayed asking you how you want to rename the files:</p>
  <p>如果选择多个文件，则会显示一个新对话框，询问您如何重命名文件：</p>

  <div class="image">
    <img alt="book-browser-rename-files" src="../Images/book-browser-rename-files.png"/>
  </div>

  <p>Enter the name the first file should have, including numbers at the end of the name. Sigil will then name each of your files sequentially using the name you provided and starting at the number you provided. A file will not be renamed if it would result in the book having duplicate file names. You can also rename the extension.</p>
  <p>输入第一个文件应具有的名称，名称末尾包括数字。然后，Sigil 将使用您提供的名称并以您提供的编号开头，依次命名每个文件。如果文件导致书名重复，则不会重命名文件。您也可以重命名扩展名。</p>

  <p>For example:</p>
  <p>举例：</p>

  <div class="indent">
    <dl>
      <dt><span class="example">Chapter 1</span></dt>

      <dd>Will rename the files to: <span class="example">Chapter 1, Chapter 2, Chapter 3 …</span> but will not change the file extension.</dd>
      <dd>文件将重命名为：<span class="example">Chapter 1, Chapter 2, Chapter 3 …</span>，但不会更改文件扩展名。</dd>

      <dt><span class="example">Section_0099</span></dt>

      <dd>Will rename the files to: <span class="example">Section_0099, Section 0100, Section_0101 …</span>.</dd>
      <dd>文件将重命名为：<span class="example">Section_0099, Section 0100, Section_0101 …</span>。</dd>

      <dt><span class="example">Part 2 – Section 08</span></dt>

      <dd>Will rename the files to: <span class="example">Part 2 – Section 08, Part 2 – Section 09, Part 2 – Section 10 …</span>.</dd>
      <dd>文件将重命名为：<span class="example">Part 2 – Section 08, Part 2 – Section 09, Part 2 – Section 10 …</span>。</dd>

      <dt><span class="example">.xhtml</span></dt>

      <dd>Will rename only the file extension of all files to: <span class="example">.xhtml</span>.</dd>
      <dd>所有文件的文件扩展名仅将重命名为：<span class="example">.xhtml </span>。</dd>

      <dt><span class="example">Section_0099.xhtml</span></dt>

      <dd>Will rename the files to: <span class="example">Section_0099.xhtml, Section 0100.xhtml, Section_0101.xhtml …</span>.</dd>
      <dd>文件将重命名为：<span class="example">Section_0099.xhtml, Section 0100.xhtml, Section_0101.xhtml …</span>。</dd>
    </dl>
  </div>

  <div class="tip">
    <p class="tiptext">When you rename a file, any links pointing to the file in your EPUB will be updated.</p>
    <p class="tiptext">重命名文件时，指向 EPUB 中的文件的任何链接都将更新。</p>
  </div>

  <h3 class="sigil_not_in_toc">合并</h3>

  <p>If you select a single HTML file, then the file will be merged into the previous HTML file in the list.</p>
  <p>如果选择单个 HTML 文件，则该文件将合并到列表中的上一个 HTML 文件中。</p>

  <p>If you select multiple HTML files, then all files will be merged into the first HTML file you selected.</p>
  <p>如果选择多个 HTML 文件，则所有文件都将合并到您选择的第一个 HTML 文件中。</p>

  <p>You can also use the Merge keyboard shortcut. See the <a href="../Text/splitting_and_merging.html">Splitting and Merging</a> chapter for more details.</p>
  <p>您也可以使用合并键盘快捷键。有关更多详细信息，请参见 <a href="../Text/splitting_and_merging.html">拆分和合并</a> 一章。</p>

  <h3 class="sigil_not_in_toc">排序</h3>

  <p>Sort the selected HTML files alpha-numerically. This means filenames containing numbers will be sorted in their expected numerical order, e.g. “1 3 2 10” will be resorted as “1 2 3 10” instead of the default “1 10 2 3”.</p>
  <p>按字母顺序对选定的 HTML 文件进行排序。这意味着包含数字的文件名将按照其预期的数字顺序进行排序，例如 “1 3 2 10”将被替换为“1 2 3 10”，而不是默认的“1 10 2 3”。</p>

  <h3 class="sigil_not_in_toc">链接样式表</h3>

  <p>Link Stylesheets to the selected HTML files. Choose the stylesheets to link from the dialog window – only stylesheets marked with a checkmark will be linked, others will be unlinked from the HTML file.</p>
  <p>将样式表链接到选定的 HTML 文件。从对话框窗口中选择要链接的样式表 - 仅链接带有选中标记的样式表，而其他样式表将与 HTML 文件取消链接。</p>

  <div class="image">
    <img alt="book-browser-link-stylesheets" src="../Images/book-browser-link-stylesheets.png"/>
  </div>

  <div class="tip">
    <p class="tiptext">When the dialog is first opened a checkmark is shown against stylesheets only if all selected files are linked to that stylesheet.</p>
    <p class="tiptext">首次打开对话框时，仅当所有选定文件都链接到该样式表时，才会在样式表上显示一个选中标记。</p>

    <p class="tiptext">Stylesheets are applied in the order listed when the document is rendered.</p>
    <p class="tiptext">呈现文档时，将按照列出的顺序应用样式表。</p>
  </div>

  <h3 class="sigil_not_in_toc" id="add-semantics">添加语义</h3>

  <p>This sub-menu allows you to designate the semantic "type" for selected files. EPUB ereaders may use this information (stored in the <span class="example">content.opf file</span>) to guide them in how to present these files to readers.</p>
  <p>该子菜单允许您为所选文件指定语义“类型”。EPUB 电子阅读器可以使用此信息（存储在 <span class="example">content.opf</span> 文件中）来指导他们如何向读者展示这些文件。</p>

  <p>For Image files, the only option is <span class="menuitem">Cover</span> – to indicate that this image is the cover image of the book.</p>
  <p>对于图像文件，唯一的选择是 <span class="menuitem">Cover</span> ——表示该图像是该书的封面图像。</p>

  <p>For HTML files in EPUB2 books you can select from any of the following options – but each file can have only one type:</p>
  <p>对于 EPUB2 图书中的 HTML 文件，您可以从以下任意选项中进行选择——但每个文件只能具有一种类型：</p>

  <ul>
    <li>Cover</li>

    <li>Title Page</li>

    <li>Table of Contents</li>

    <li>Index</li>

    <li>Glossary</li>

    <li>Acknowledgements</li>

    <li>Bibliography</li>

    <li>Colophon</li>

    <li>Copyright Page</li>

    <li>Dedication</li>

    <li>Epigraph</li>

    <li>Foreword</li>

    <li>List of Illustrations</li>

    <li>List of Tables</li>

    <li>Notes</li>

    <li>Preface</li>

    <li>Text</li>
  </ul>

  <div class="tip">
    <p class="tiptext"><span class="menuitem">Text</span> (or <span class="menuitem">Bodymatter</span> in EPUB3 books) should be used to indicate the page of the book that should be shown when the book is first opened, but not all ereaders follow this convention.</p>
    <p class="tiptext"><span class="menuitem">Text</span>（或 EPUB3 图书中的 <span class="menuitem">Bodymatter</span> ）应用于表示该书在首次打开时应显示的页面，但并非所有电子阅读器都遵循 这个约定。</p>
  </div>

  <h3 class="sigil_not_in_toc" id="context_open_with">打开方式</h3>

  <p>Opens a dialog window to allow you to choose an external application to edit this file.</p>
  <p>打开一个对话框，您可以选择一个外部应用程序来编辑此文件。</p>

  <p>See the <a href="../Text/external_editors.html">External Editors</a> chapter for more details.</p>
  <p>有关更多详细信息，请参见 <a href="../Text/external_editors.html">外部编辑器</a> 一章。</p>

  <h3 class="sigil_not_in_toc" id="context_save_as">另存为</h3>

  <p>Allows you to save the selected files to your computer in case you need to access them outside of the EPUB.</p>
  <p>如果您需要在 EPUB 之外访问选定的文件，可以将其保存到计算机中。</p>

  <h3 class="sigil_not_in_toc" id="context_add_blank">添加空白 HTML 文件/样式表/SVG 图像</h3>

  <p>Adds a blank HTML document, CSS Stylesheet, or SVG Image file to the folder. For HTML it will add just below the file you right-clicked on, or at the bottom of the folder if you right-clicked on the folder name. For other folders it will add them in alphabetical order.</p>
  <p>将空白 HTML 文档、CSS 样式表或 SVG 图像文件添加到文件夹。对于 HTML，它将添加在您右键单击的文件的下方，或者如果您右键单击文件夹名称，则将添加在文件夹的底部。对于其他文件夹，它将按字母顺序添加。</p>

  <p>This is the same as the main menu item <span class="menuitem">File→Add</span>.</p>
  <p>这与主菜单项 <span class="menuitem">文件→添加</span> 相同。</p>

  <p>The new file will be numbered with the lowest available number starting from <span class="example">0001</span> (e.g. <span class="example">Section0001.html</span>), and you can then rename it.</p>
  <p>新文件将使用从 <span class="example">0001</span> 开始的最低编号编号（例如 <span class="example">Section0001.html</span>），然后可以对它重命名。</p>

  <h3 class="sigil_not_in_toc" id="context_add_copy">添加副本</h3>

  <p>Creates a copy of the HTML file you clicked on and adds it to the folder.</p>
  <p>创建您单击的 HTML 文件的副本并将其添加到文件夹中。</p>

  <h3 class="sigil_not_in_toc" id="context_add_existing_files">添加现有文件</h3>

  <p>Opens a dialog window to allow you to choose one or more files from your computer to add to your EPUB.</p>
  <p>打开一个对话框，您可以从计算机中选择一个或多个文件添加到 EPUB。</p>

  <p>Files will be added to the appropriate folder based on their file extension regardless of what file you right-clicked on.</p>
  <p>无论您右键单击什么文件，文件都会根据文件扩展名添加到适当的文件夹中。</p>

  <p>This is the same as the main menu item <span class="menuitem">File→Add→Existing Files</span> and the Add Existing toolbar button.</p>
  <p>这与主菜单项 <span class="menuitem">文件→添加→现有文件</span> 和添加现有工具栏按钮相同。</p>

  <h3 class="sigil_not_in_toc" id="select_all">全选</h3>

  <p>A quick way to select all of the files in the current folder so you can rename, link, etc. all of them at once.</p>
  <p>一种选择当前文件夹中所有文件的快速方法，以便您可以一次重命名，链接等所有文件。</p>

  <h3 class="sigil_not_in_toc" id="font_obfuscation">字体混淆</h3>

  <p>If you are using custom fonts in your ebook, then this Font folder sub-menu allows you to define how the embedded fonts are stored in the EPUB. Normally when fonts are added to the EPUB the fonts are stored in a readable form. In some cases you may not want to make the fonts available for the readers to access directly. In these cases you can obfuscate or scramble the fonts in the ebook so that readers cannot access the fonts, but the fonts will still be useable by EPUB ereaders. The details of obfuscation and its implications are beyond the scope of this guide, but there are many references to it on the web.</p>
  <p>如果您在电子书中使用自定义字体，则此“字体”文件夹子菜单可让您定义嵌入字体在 EPUB 中的存储方式。通常，将字体添加到 EPUB 时，字体以可读形式存储。在某些情况下，您可能不希望字体可供读者直接访问。在这些情况下，您可以对电子书中的字体进行混淆或打乱，以使读者无法访问字体，但是 EPUB 电子书阅读器仍可以使用这些字体。模糊处理及其含义的详细信息超出了本指南的范围，但是在网络上有很多对此的引用。</p>

  <p>The options are:</p>
  <p>选项包括：</p>

  <ul>
    <li>None</li>
    <li>无</li>

    <li>Use Adobe’s Method</li>
    <li>使用 Adobe 的方法</li>

    <li>Use IDPF’s Method</li>
    <li>使用 IDPF 的方法</li>
  </ul>

  <div>
    The method will have a checkmark next to it if all selected fonts use that method.
  </div>
  <div>
    如果所有选定的字体都使用该方法，则该方法旁边将带有一个选中标记。
  </div>

  <h3 class="sigil_not_in_toc">重新编号目录条目</h3>

  <p>An advanced feature that sequentially renumbers the playOrder and navPoint id numbers of the Table of Content entries in the <span class="example">toc.ncx</span> file starting from 1. This feature is intended to clean up the TOC numbering if you have to manually add or delete an entry in the TOC.</p>
  <p>一项高级功能，可以从 1 开始按顺序对 <span class="example">toc.ncx</span> 文件中的目录条目的 playOrder 和 navPoint id 编号 重新编号。此功能旨在清除 TOC 编号，如果您必须在目录中手动添加或删除条目。</p>

  <p>You can also use the Edit TOC feature – just saving the TOC will renumber the ids.</p>
  <p>您还可以使用“编辑目录”功能 - 仅保存目录将对 ID 重新编号。</p>

  <p>Any navList or pageList items in the file are not saved – only the Table of Contents entries are saved after renumbering.</p>
  <p>文件中的所有 navList 或 pageList 项均不保存——重新编号后仅保存目录条目。</p>
</body>
</html>